import DashboardLayout from '../layout/DashboardLayout.vue'
// GeneralViews
import NotFound from '../pages/NotFoundPage.vue'




import Test from 'src/pages/Test.vue'

 const routes = [
  {
    path: '/',
    //component: DashboardLayout,
    //redirect: '/admin/overview',
    redirect: '/login',
    component: resolve => require(['../pages/Login'], resolve)
  },
  {
    path: '/login',
    name: 'Login',
   
    component: resolve => require(['../pages/Login'], resolve)
  },
  {
    path: '/demo',
    name: 'Demo',
    component: resolve => require(['../pages/Demo'], resolve)
  },
  
 
  
 
  {
    path: '/admin',
    component: DashboardLayout,
    redirect: '/admin/overview',
    children: [
      {
        path: 'test',
        name: 'Test',
        component: Test
      },
      {
        path: 'add',
        name: 'Add',
        component: resolve => require(['../pages/AddPark'], resolve)
        },
        {
          path: 'no-pay',
          name: 'nopay',
          component: resolve => require(['../pages/NoPay'], resolve)
          },
          {
            path: 'no-pass',
            name: 'nopass',
            component: resolve => require(['../pages/NoPass'], resolve)
            },
      {
        path: 'bao-yue-profile',
        name: 'BaoYueProgile',
        component: resolve => require(['../pages/BaoYueProfile'], resolve)
        },
      {
        path: 'manager-profile',
        name: 'ManagerProfile',
        component: resolve => require(['../pages/ManagerProfile'], resolve)
        },
        {
          path: 'park-profile',
          name: 'ParkProgile',
          component: resolve => require(['../pages/ParkProfile'], resolve)
          },
          {
            path: 'manager',
            name: 'Manager',
            component: resolve => require(['../pages/AddManager'], resolve)
            },
          {
            path: 'no-park',
            name: 'NoPark',
            component: resolve => require(['../pages/NoPark'], resolve)
            },
            {
              path: 'no-park-profile',
              name: 'NoParkProgile',
              component: resolve => require(['../pages/NoParkProfile'], resolve)
              },
     
      {
        path: 'overview',
        name: 'Overview',
        component: resolve => require(['../pages/Overview'], resolve)
      },
      {
        path: 'user',
        name: 'User',
        component: resolve => require(['../pages/UserProfile'], resolve)
      },
      {
        path: 'park-list',
        name: 'Park List',
        component: resolve => require(['../pages/Park'], resolve)
      },
      {
        path: 'baoyue',
        name: 'baoyue',
        component: resolve => require(['../pages/BaoYue'], resolve)
      },
      {
        path: 'statistical',
        name: 'Icons',
        component: resolve => require(['../pages/Icons'], resolve)
      },
      {
        path: 'manage',
        name: 'Manage',
        component: resolve => require(['../pages/Manage'], resolve)
        

      },
      {
        path: 'park-manager',
        name: 'ParkManager',
        component: resolve => require(['../pages/ParkManager'], resolve)
        

      },
    
     
      
    ]
  },
  { path: '*', component: NotFound }
];



export default routes;
